﻿@using OA.Models.Enums
@using OA.Models.ViewModels
@model IEnumerable<IGrouping<ApplicationFormType, ApplyEntranceViewModel>>
@{
    string actionName = ViewBag.ActionName;
}

<style>
    .forms-container{ padding:10px;}
    .forms-type { }
    .forms-title { font-size: 30px; }
    .forms-name { margin: 10px; }
</style>

<div class="forms-container">
    @foreach (var formGroup in Model)
    {
        <div class="forms-type">
            <div class="forms-title">
                @formGroup.Key
            </div>

            @foreach (var forms in formGroup)
            {
                <div class="forms-name">
                    @Html.ActionLink(forms.Name, actionName, "ApplicationForm", new { type = forms.Name }, null)
                </div>
            }
        </div>
    }
</div>
